home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1994-03-12 | 2.8 KB | 73 lines |
- ' *************************************
- ' * *
- ' * Demo 8 V1.0 *
- ' * Written by Chris Hodges *
- ' * *
- ' *************************************
- '
- Screen Close 0 : Close Editor : Close Workbench
- Unpack 15 To 0 : Screen Hide 0 : Hide
- For Y=0 To 4
- For X=0 To 9
- Get Block X+Y*10+1,X*32,Y*40,32,40,0
- Next
- Next
- Screen Open 1,352,200,32,Lowres
- Flash Off : Curs Off : Paper 0 : Pen 1 : Cls 0
- Screen Display 1,128,50,320,200
- Get Palette 0
- Set Rainbow 1,0,46,"","","" : B=0 : C=0
- For A=0 To 45
- Rain(1,A)=B/2 : B=Min(B+1,31)
- Next
- SC$=" abcdefghijklmnopqrstuvwxyz0123456789!?:;G(),-.'FS"
- S$="hotsoft presents another fine intro! sorry about the upper bar but if i'll modify it the scroller will begin to ..."
- S$=S$+" aeh... na ruckeln halt... if you want to see it anyway press right mouse button... not my problem..."
- S$=S$+" amos is really the best basic language on the amiga... "
- S$=S$+" it's much better than amigabasic (kotz!).... "
- S$=S$+"at last the greetings this time a little bit shorter... only a bit! not a byte (haha!) "
- S$=S$+"hendrik h. heimer michael berchtold mad henry mr. snoopy jaro hans-peter the hitman "
- S$=S$+" scroll restarts "
- S=31 : B=0 : SP=8
- Def Scroll 1,0,158 To 352,199,-SP,0
- Rainbow 1,0,204,46
- Screen Copy 0,0,200,224,240 To 1,50,117
- Screen Copy 0,0,241,320,242 To 1,0,199
- Screen Copy 0,0,241,320,242 To 1,0,157
- Screen Copy 0,0,241,320,242 To 1,0,115
- Screen Copy 0,0,241,320,242 To 1,0,0
- Screen Close 0
- Shift Down 2,16,28,1 : Music 1
- Flash 8,"(000,60)(222,1)(444,1)(666,1)(888,1)(AAA,1)(CCC,1)(FFF,4)(CCC,1)(AAA,1)(888,1)(666,1)(444,1)"
- Y1=2 : S1=1
- Do
- Add S,SP
- If S>31 Then Gosub NL
- Add D,1,16 To 27 : Add Y1,S1 : If Y1>112 or Y1<3 Then S1=-S1
- Wait Vbl : Scroll 1
- Ink D : Draw 32,Y1 To 287,Y1
- Exit If Mouse Key=1
- If Mouse Key=2 Then Gosub BA
- Loop
- Shift Off : Flash Off : Rainbow Del
- Music Off : Screen Close 1
- View : Wait Vbl
- End
- NL:
- S=0 : Add B,1,1 To Len(S$)
- C=Instr(SC$,Mid$(S$,B,1))-1 : Y=C/10 : X=C mod 10
- Put Block C+1,320,159
- Return
- BA:
- Ink 0 : Bar 0,2 To 320,113 : Repeat : Until Mouse Key=0
- Y1=2 : Y2=30 : Y3=20 : Y4=15 : S1=0 : S2=0 : S3=0 : S4=2
- Repeat
- YA1=Y1 : YA2=Y2 : YA3=Y3 : YA4=Y4 : Add D,1,16 To 27 : Add Y1,S1 : Inc S1 : If Y1>100 Then S1=-S1+1
- Add Y2,S2 : Inc S2 : If Y2>100 Then S2=-S2+1
- Add Y3,S3 : Inc S3 : If Y3>100 Then S3=-S3+1
- Add Y4,S4 : Inc S4 : If Y4>100 Then S4=-S4+1
- Wait Vbl : Ink D : Polyline 30,Y1 To 109,Y2 To 209,Y3 To 289,Y4 : Ink 0 : Polyline 30,YA1 To 109,YA2 To 209,YA3 To 289,YA4
- Until Mouse Key=2
- Ink 0 : Bar 0,2 To 320,113 : Repeat : Until Mouse Key=0
- Y1=2 : S1=1
- Return